package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ClassroomGroupRecommendationMapper;
import com.ruoyi.system.domain.ClassroomGroupRecommendation;
import com.ruoyi.system.service.IClassroomGroupRecommendationService;

/**
 * 优秀小组推荐Service业务层处理
 * 
 * @author codeChen
 * @date 2024-01-09
 */
@Service
public class ClassroomGroupRecommendationServiceImpl implements IClassroomGroupRecommendationService 
{
    @Autowired
    private ClassroomGroupRecommendationMapper classroomGroupRecommendationMapper;

    /**
     * 查询优秀小组推荐
     * 
     * @param id 优秀小组推荐主键
     * @return 优秀小组推荐
     */
    @Override
    public ClassroomGroupRecommendation selectClassroomGroupRecommendationById(Long id)
    {
        return classroomGroupRecommendationMapper.selectClassroomGroupRecommendationById(id);
    }

    /**
     * 查询优秀小组推荐列表
     * 
     * @param classroomGroupRecommendation 优秀小组推荐
     * @return 优秀小组推荐
     */
    @Override
    public List<ClassroomGroupRecommendation> selectClassroomGroupRecommendationList(ClassroomGroupRecommendation classroomGroupRecommendation)
    {
        return classroomGroupRecommendationMapper.selectClassroomGroupRecommendationList(classroomGroupRecommendation);
    }

    /**
     * 新增优秀小组推荐
     * 
     * @param classroomGroupRecommendation 优秀小组推荐
     * @return 结果
     */
    @Override
    public int insertClassroomGroupRecommendation(ClassroomGroupRecommendation classroomGroupRecommendation)
    {
        return classroomGroupRecommendationMapper.insertClassroomGroupRecommendation(classroomGroupRecommendation);
    }

    /**
     * 修改优秀小组推荐
     * 
     * @param classroomGroupRecommendation 优秀小组推荐
     * @return 结果
     */
    @Override
    public int updateClassroomGroupRecommendation(ClassroomGroupRecommendation classroomGroupRecommendation)
    {
        return classroomGroupRecommendationMapper.updateClassroomGroupRecommendation(classroomGroupRecommendation);
    }

    /**
     * 批量删除优秀小组推荐
     * 
     * @param ids 需要删除的优秀小组推荐主键
     * @return 结果
     */
    @Override
    public int deleteClassroomGroupRecommendationByIds(Long[] ids)
    {
        return classroomGroupRecommendationMapper.deleteClassroomGroupRecommendationByIds(ids);
    }

    /**
     * 删除优秀小组推荐信息
     * 
     * @param id 优秀小组推荐主键
     * @return 结果
     */
    @Override
    public int deleteClassroomGroupRecommendationById(Long id)
    {
        return classroomGroupRecommendationMapper.deleteClassroomGroupRecommendationById(id);
    }
}
